SERVER=xenon.cs.luc.edu:~/public_html/cs271/lectures

all: images slides article

article:
	pdflatex linkedlist.article.tex
	pdflatex linkedlist.article.tex

slides:
	pdflatex linkedlist.beamer.tex
	pdflatex linkedlist.beamer.tex

images:
	dot -Tpdf linkedlist.dot > linkedlist_diag.pdf
	dot -Tpdf doublylinkedlist.dot > doublylinkedlist.pdf

publish: all
	scp linkedlist.beamer.pdf ${SERVER}/lec5-linkedlist.beamer.pdf
	scp linkedlist.article.pdf ${SERVER}/lec5-linkedlist.article.pdf

clean:
	-rm *.aux *.log *.nav *.out *.pdf *.snm *.toc *.vrb *.ps *.dvi
	-rm *~